<?php
/**
 *
 *   User:King
 *   Date:2021/10/28 11:01
 */

namespace app\common\model;


use think\Model;

class VoucherAccount extends Model
{
    // 表名
    protected $name = 'voucher_account';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    // 追加属性
    protected $append = [
    ];

    public function voucher()
    {
        return $this->belongsTo('NewVoucher','voucher_id','id');
    }

}
